﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;

namespace TrackingSim.GraphicSystem.Shaders
{
    class EffectLoader
    {
        private static ResourceSystem.load_delegate_cm<ResourceSystem.Resource> loader = EffectLoader.load;

        public EffectLoader()
        {
        }

        public static ResourceSystem.load_delegate_cm<ResourceSystem.Resource> Loader
        {
            get { return loader; }
        }

        private static void load(string path, ContentManager cm, List<ResourceSystem.Resource> effects)
        {
            EffectResource effect = new EffectResource(path, cm);
            effects.Add(effect);
        }
    }
}
